<template>
  <div>
    <div class="info_box">
      <div class="info_left">
        <div>我的金币:</div>
        <div>{{info.pingtaibi || 0}}</div>
      </div>
      <div class="info_btn" @click="$router.push('/userinfo/recharge')">
        <img src="../../../assets/img/stored/ic_detail.png" alt="">
        <span>明细</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    info: {
      type: Object,
      default() {
        return {}
      }
    },
  },
}
</script>

<style lang="less" scoped>
.info_box {
  box-sizing: border-box;
  padding: .4rem;
  margin: .266667rem .426667rem 0;
  width: 9.146667rem;
  height: 1.866667rem;
  border-radius: .266667rem;
  background: linear-gradient(to right,#ee873a, #e96641);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info_left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: .32rem;
  div:first-child {
    font-size: .32rem;
  }
  div:last-child {
    font-size: .666667rem;
    font-weight: 800;
  }
}

.info_btn {
  width: 1.933333rem;
  height: .746667rem;
  background: #fff;
  border-radius: .373333rem;
  color: #ec614d;
  font-size: .32rem;
  display: flex;
  align-items: center;
  justify-content: center;
  img {
    width: .32rem;
    height: .32rem;
    margin-right: .16rem;
  }
}
</style>